using System;
using JetBrains.ReSharper.Psi.Tree;
using Twins.Interface;

namespace Twins.Classes
{
    public class LineCode : ILineCode
    {
        public ITreeNode Statement { get; private set; }
        public string HashLineCode { get; private set; }
        public bool IsHighLighting { get;  set; }
        
        public LineCode(ITreeNode statement, string hashLineCode)
        {
            if (statement == null)
                throw new ArgumentNullException("statement");
            if (string.IsNullOrEmpty(hashLineCode))
                throw new ArgumentNullException("hashLineCode");
            Statement = statement;
            HashLineCode = hashLineCode;
            IsHighLighting = false;
        }
    }
}